<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  <meta name="layout" content="main"/>
  <title>Show Entry</title>
</head>
<body>
<div class="nav">
  <span class="menuButton"><a class="home" href="${createLinkTo(dir: '')}">Home</a></span>
  <span class="menuButton"><g:link class="list" action="list">Entry List</g:link></span>
  <span class="menuButton"><g:link class="create" action="create">New Entry</g:link></span>
</div>
<div class="body">
  <h1>Show Entry</h1>
  <g:if test="${flash.message}">
    <div class="message">${flash.message}</div>
  </g:if>
  <div class="dialog">
    <table>
      <tbody>

      <tr class="prop">
        <td valign="top" class="name">Id:</td>

        <td valign="top" class="value">${fieldValue(bean: entryInstance, field: 'id')}</td>

      </tr>

      <tr class="prop">
        <td valign="top" class="name">Title:</td>

        <td valign="top" class="value">${fieldValue(bean: entryInstance, field: 'title')}</td>

      </tr>

      <tr class="prop">
        <td valign="top" class="name">Content:</td>

        <td valign="top" class="value">${entryInstance.content}</td>

      </tr>

      <tr class="prop">
        <td valign="top" class="name">Catalog:</td>

        <td valign="top" class="value"><g:link controller="catalog" action="list" id="${entryInstance.catalog?.id}">${entryInstance.catalog?.name}</g:link></td>

      </tr>

      <tr class="prop">
        <td valign="top" class="name">Tag Names:</td>

        <td valign="top" class="value">${fieldValue(bean: entryInstance, field: 'tagNames')}</td>

      </tr>

      <tr class="prop">
        <td valign="top" class="name">Tags:</td>
        <td valign="top" class="value">
          <g:each in="${entryInstance.tags}" var="tag">${tag},</g:each>
        </td>

      </tr>

      <tr class="prop">
        <td valign="top" class="name">Description:</td>

        <td valign="top" class="value">${fieldValue(bean: entryInstance, field: 'description')}</td>

      </tr>

      <tr class="prop">
        <td valign="top" class="name">Content Type:</td>

        <td valign="top" class="value">${fieldValue(bean: entryInstance, field: 'contentType')}</td>

      </tr>

      <tr class="prop">
        <td valign="top" class="name">Source:</td>

        <td valign="top" class="value">${fieldValue(bean: entryInstance, field: 'source')}</td>

      </tr>

      <tr class="prop">
        <td valign="top" class="name">SourceUrl:</td>

        <td valign="top" class="value"><a href="${fieldValue(bean: entryInstance, field: 'sourceUrl')}">${fieldValue(bean: entryInstance, field: 'sourceUrl')}</a></td>

      </tr>

      <tr class="prop">
        <td valign="top" class="name">Creator:</td>

        <td valign="top" class="value"><g:link controller="person" action="show" id="${entryInstance?.creator?.id}">${entryInstance?.creator?.encodeAsHTML()}</g:link></td>

      </tr>

      <tr class="prop">
        <td valign="top" class="name">Hits:</td>

        <td valign="top" class="value">${fieldValue(bean: entryInstance, field: 'hits')}</td>

      </tr>

      <tr class="prop">
        <td valign="top" class="name">Recommend:</td>

        <td valign="top" class="value">${fieldValue(bean: entryInstance, field: 'recommend')}</td>

      </tr>

      <tr class="prop">
        <td valign="top" class="name">Stage:</td>

        <td valign="top" class="value">${fieldValue(bean: entryInstance, field: 'stage')}</td>

      </tr>


      <tr class="prop">
        <td valign="top" class="name">Date Created:</td>

        <td valign="top" class="value">${fieldValue(bean: entryInstance, field: 'dateCreated')}</td>

      </tr>

      <tr class="prop">
        <td valign="top" class="name">RootCatalogId:</td>

        <td valign="top" class="value">${fieldValue(bean: entryInstance, field: 'rootCatalogId')}</td>

      </tr>

      <tr class="prop">
        <td valign="top" class="name">Depth:</td>

        <td valign="top" class="value">${fieldValue(bean: entryInstance, field: 'depth')}</td>

      </tr>

      <tr class="prop">
        <td valign="top" class="name">Last Updated:</td>

        <td valign="top" class="value">${fieldValue(bean: entryInstance, field: 'lastUpdated')}</td>

      </tr>
      </tbody>
    </table>
  </div>
  <div class="buttons">
    <g:form>
      <input type="hidden" name="id" value="${entryInstance?.id}"/>
      <span class="button"><g:actionSubmit class="edit" value="Edit"/></span>
      <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Are you sure?');" value="Delete"/></span>
    </g:form>
  </div>
</div>
</body>
</html>
